<div class="grid-6 omega">
    <div class="region region-user-menu">
        <div id="block-menu-menu-header-menu" class="block block-menu block-odd">
            <div class="block-title">
            </div>
            <div class="content">
                <ul class="menu">
                    <?php 
                    if (isset($_SESSION['usuario_fb']) && $_SESSION['usuario_fb']){
                        $user_fb = $_SESSION['usuario_fb'];
                    ?>
                    <li class="last leaf faqs mid-4722">
                        <a target="_blank" href="<?php echo $user_fb->link; ?>">olá, <?php echo $user_fb->name?></a>
                    </li>
                    <li>|</li>
                    <li class="last leaf faqs mid-4722">
                        <a href="<?php echo site_url('site/login/logout');?>">sair</a>
                    </li>
                        
                    <?php    
                    } else {
                    ?>
                    <li class="last leaf faqs mid-4722">
                        <a href="https://www.facebook.com/dialog/oauth?client_id=<?php echo APP_ID ?>&redirect_uri=<?php echo site_url('site/login/autenticar'); ?>&scope=email,user_birthday" title="">logar com facebook</a>
                    </li>
                    <?php 
                    }
                    ?>
                    <li>|</li>
                    <li class="first leaf help mid-4720"><a href="<?php echo base_url('admin/home/index');?>" title="">Área restrita</a></li>
                </ul> 
            </div>
        </div>  
    </div>
</div>